<?php
// No direct access
defined('_JEXEC') or die;

jimport('joomla.application.component.view');

class ContentViewSeo extends JView
{
    protected $catid_seo;
    
    // Overwriting JView display method
    function display($tpl = null)
    {
        // Assign data to the view
        //$app = JFactory::getApplication();
        //get app pagram
        $app = JFactory::getApplication('site');
        $componentParams = $app->getParams('com_content');
        $this->catid_seo = $componentParams->get('catid_seo', 1);
        
        $doc = JFactory::getDocument();
        //$doc->set('container_class',' class="bg_home"');

        // Check for errors.
        if (count($errors = $this->get('Errors')))
        {
            JError::raiseError(500, implode('<br />', $errors));
            return false;
        }

        // Display the view
        parent::display($tpl);
    }
}
